package com.cortext.pineapple.link;

import com.cortex.pineapple.fetch.RequestData.SOURCE_TYPE;




public class ImageLink extends Link{

	private String imageUrl;
	private String displayUrl;
	private float fileSize;
	private int width;
	private int height;
	private String type;
	
	public ImageLink(String id, String title, String sourceUrl,
			String imageUrl, String displayUrl, float fileSize, int width,
			int height,String type) {
		super(id,title,sourceUrl);
		this.imageUrl = imageUrl;
		this.displayUrl = displayUrl;
		this.fileSize = fileSize/10000;
		this.width = width;
		this.height = height;
		this.type = type;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String mediaUrl) {
		this.imageUrl = mediaUrl;
	}

	public String getDisplayUrl() {
		return displayUrl;
	}

	public void setDisplayUrl(String displayUrl) {
		this.displayUrl = displayUrl;
	}
	/**
	 * get file size in MB
	 * @param fileSize
	 */
	public float getFileSize() {
		return fileSize;
	}

	/**
	 * set file size in MB
	 * @param fileSize
	 */
	public void setFileSize(float fileSize) {
		this.fileSize = fileSize;
	}
	/**
	 * get width in pixel
	 * @param width
	 */
	public int getWidth() {
		return width;
	}
	/**
	 * set width in pixel
	 * @param width
	 */
	public void setWidth(int width) {
		this.width = width;
	}
	/**
	 * get height in pixel
	 * @param height
	 */
	public int getHeight() {
		return height;
	}
	/**
	 * set height in pixel
	 * @param height
	 */
	public void setHeight(int height) {
		this.height = height;
	}

	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

	@Override
	public SOURCE_TYPE getSourceType() {
		return SOURCE_TYPE.IMAGES;
	}
}
